<template>
  <div class="">
    Counter: {{ counter }}
    <el-button @click="counter++">+</el-button>
    <el-button @click="counter--">-</el-button>
    Count: {{ store.count }}
    <el-button @click="store.increment">+</el-button>
  </div>
</template>

<script setup>
import { useCounterStore } from '~/stores/myStore.js'
const store = useCounterStore()
const counter = useCounter()
</script>

<style lang="scss" scoped></style>